<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="fragment :: common_header(~{::title},~{},~{},~{})">
    <title th:text="${status}">系统出错啦~~~</title>
</head>
<body>
<div class="center-block"
     style="width:600px;height:300px;position: absolute; top: 40%; left: 50%;transform: translate(-50%, -50%);">
    <div class="content">
        <div class="row">
            <div class="col-sm-6 center-block" style="height:300px;width:300px;padding-top:50px;">
                <h1 align="center">o(╥﹏╥)o</h1><br/>
                <h1 align="center" th:text="${status}">错误信息</h1>
                <h4 align="center"><a href="javascript:sendRedirect('/main/mainPage');" style="color:red;">返回首页</a>
                </h4>
            </div>
            <div th:if="${status==404}" class="col-sm-6 center-block" style="height:300px;width:300px;">
                <img style="max-height:300px;max-width:500px;" th:src="@{/images/error/404.jpg}"/>
            </div>
            <div th:if="${status!=404}" class="col-sm-6 center-block" style="height:300px;width:300px;">
                <img style="max-height:300px;max-width:500px;" th:src="@{/images/error/405.gif}"/>
            </div>
        </div>
    </div>
</div>
</body>
</html>